home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / gfx / conv / Wasp202b.lha / wasp / src / proto.h < prev    next >
C/C++ Source or Header  |  1992-03-21  |  6KB  |  195 lines

  1.  
  2. /* wasp.c */
  3. int main ( int argc , char **argv );
  4. void usage ( void );
  5. void initvars ( void );
  6. void *cmalloc ( unsigned int n );
  7. void *ccalloc ( unsigned int n );
  8. void *crealloc ( void *q , unsigned int n );
  9. void lowcase ( char *s );
  10. unsigned long ceillog2 ( unsigned long a );
  11. int stringcode ( char *s );
  12. void do_options ( int argc , char **argv );
  13. void do_operations ( int argc , char **argv );
  14.  
  15. /* raw.c */
  16. int read_srgr ( void );
  17. void write_srgr ( void );
  18.  
  19. /* readiff.c */
  20. int read_iff ( void );
  21. char *idstr ( unsigned long id );
  22. void do_chunk ( unsigned long id );
  23. int isgroupid ( unsigned long id );
  24. int isgroupid2 ( unsigned long i , unsigned long i2 );
  25. int isvalid ( unsigned long id );
  26. void do_anno ( unsigned long size );
  27. void do_cmap ( unsigned long size );
  28. void extend_cmap ( void );
  29. void do_sham ( unsigned long size , int is_ctbl );
  30. void do_body ( unsigned long size );
  31. void set_bodylimit ( unsigned long size );
  32. void check_bodylimit ( void );
  33. short nextbody ( void *buf );
  34. void read_direct_body ( void );
  35. void read_body ( void );
  36. void fill_conv ( void );
  37. void do_row ( short y , unsigned char *parrow );
  38. void do_row_ham ( short y , unsigned char *parrow );
  39. void do_row_direct ( short y , unsigned char *inrow );
  40.  
  41. /* readgif.c */
  42. int read_gif ( void );
  43. int readscreendescriptor ( void );
  44. int readimagedescriptor ( void );
  45. void readcolormap ( void );
  46. void readbody ( void );
  47. short nextrow ( int mode );
  48. void decompress ( void );
  49. short fill_masks ( short startbit , short nbits );
  50. short nextcodes ( void );
  51. short nextubytes ( void );
  52. void fill_transchars ( void );
  53.  
  54. /* readras.c */
  55. int read_ras ( void );
  56. void read_normal ( void );
  57. void read_compressed ( void );
  58.  
  59. /* ppm.c */
  60. int read_ppm ( void );
  61. void write_ppm ( void );
  62. int getn ( char terminator );
  63. void putn ( int n );
  64. int read_hl ( void );
  65. int read_mtv ( void );
  66. void read_rgb24 ( void );
  67. void read_grey8 ( void );
  68. void write_rgb24 ( void );
  69.  
  70. /* operations.c */
  71. void scalex ( int t , int n );
  72. void scaley ( int t , int n );
  73. void scalef ( int yflag , float factor );
  74. void do_clipping ( int minx , int maxx , int miny , int maxy );
  75. void do_enlarge ( int newxsz , int newysz );
  76. void xaverage ( void );
  77. void xmirror ( void );
  78. void ymirror ( void );
  79. void transpose ( void );
  80. void testpat ( int testx , int testy );
  81.  
  82. /* io.c */
  83. void copen_in ( char *filename );
  84. void copen_out ( char *filename );
  85. long cseek_in ( long offset , int whence );
  86. long cseek_out ( long offset , int whence );
  87. int read1 ( void *buf , int len );
  88. void cread ( void *buf , int len );
  89. void cwrite ( void *buf , int len );
  90. void wrl ( unsigned long l );
  91. void wrs ( unsigned short s );
  92. void cout_tmp ( void );
  93. void cout_default ( long *tmp_num , long *tmp_size );
  94. void ctmp_move ( long tmp_num );
  95. int printe ( char *s , ...);
  96. void pute ( char c );
  97. void init_counter ( int start , int end , int instep , char *s , ...);
  98. void counter ( void );
  99. void erase_counter ( char *s , ...);
  100. void prin1 ( char *p );
  101. void errorx ( long code , ...);
  102.  
  103. /* wriff.c */
  104. void write_iff ( void );
  105. void wriff_init ( void );
  106. void decide_mode ( void );
  107. int is_ehb_distr ( void );
  108. void compute_nregs ( void );
  109. void write_header ( void );
  110. void write_cmap ( void );
  111. void write_mmap ( void );
  112. void write_1pchg ( void );
  113. void write_body ( void );
  114. void write_1body ( void );
  115. void fillconv ( void );
  116. int cmpcolregs ( short *p1 , short *p2 );
  117. void sort_cm ( void );
  118. char *slicednam ( int i );
  119. char *xmodenam ( int i );
  120. char *ymodenam ( int i );
  121. char *dmethnam ( int i );
  122. int dmethnum ( char *s );
  123. char *cmethnam ( int i );
  124. int cmethnum ( char *s );
  125. char *mmapnam ( int i );
  126.  
  127. /* wriffcount.c */
  128. void clear_counts ( void );
  129. void fill_xor_tab ( void );
  130. void call1 ( int row );
  131. void calldif ( int row );
  132. void callfixdif ( int row );
  133. void cjump1 ( int row );
  134. void cjump21 ( int row );
  135. void cjumpdif ( int row );
  136. void cjumpdifsh ( int row );
  137. void cjumpfixdif ( int row );
  138. void cjumpfixdifsh ( int row );
  139. void chammap ( int row );
  140. void fill_curcm ( short meth );
  141. int count_colors ( unsigned long thr );
  142. void count_pixels ( int firstrow , int lastrow , int moverride );
  143.  
  144. /* wriffdistr.c */
  145. void compute_distr ( int firstrow , int lastrow );
  146. void no_distr ( void );
  147. void mostused_distr ( void );
  148. void worstfirst_distr ( void );
  149. void fill_wf_rgb ( void );
  150. void find_2_furthest ( short *rgb1p , short *rgb2p );
  151. void fill_wf_dist_1 ( short color );
  152. void fill_wf_dist_2 ( short color );
  153. void find_1_furthest ( short *rgbp );
  154. void fill_wf2rgbweight ( void );
  155. void wf2_redo_curcm ( void );
  156. void black_darkest ( void );
  157. void ehb_distr ( void );
  158. void ehb_pair ( short c1 , int i );
  159. void ehb_worst ( short col1 , short col8 , short *worstp );
  160. int ehb_farcol ( short color );
  161. void ehb_minind_adjust ( int from , int to );
  162. void ehb_redo_curcm ( void );
  163. void mue_distr ( void );
  164. void mue_extend ( void );
  165. void hamsharp_distr ( void );
  166. void fill_hsmark ( void );
  167. int cmphs ( struct hs_t *p1 , struct hs_t *p2 );
  168. void fill_hshead ( void );
  169. void fill_hs_cm ( void );
  170. void contraction_distr ( void );
  171. void fill_ctrgbw ( void );
  172. void fill_cthead ( void );
  173. void do_contraction ( void );
  174. void fill_ct_cm ( void );
  175. void fill_cmrgb ( void );
  176. void fill_newcol ( void );
  177. void fill_newcol_count ( void );
  178. void restrict_cm ( void );
  179.  
  180. /* wriffout.c */
  181. void row_out ( int row );
  182. void rgb_row_out ( int row );
  183. void rgb_line ( int y , unsigned char *inq , int bitnum );
  184. void ham_row_out ( int row );
  185. void fill_prgbtab ( void );
  186. unsigned char *next_row ( int flush );
  187. void cwritec ( int inlen );
  188.  
  189. /* wriffasm.c */
  190.  
  191. /* scrsz.c */
  192. void get_scr_size ( void );
  193.  
  194. /* version.c */
  195.